﻿<?xml version="1.0" encoding="utf-8" ?>
<validationMapping xmlns="urn:validationFramework-validationDefinition-1.5">
  <class typeName="ValidationFramework.Tests.Configuration.Person, ValidationFramework.Tests">
    <property name="Name">
      <rule typeName="RequiredStringRule" initialValue="aaaa"/>
    </property>
    <property name="Age">
      <rule typeName="RangeRule" minimum="18" maximum="80" errorMessage="Age is invalid" />
      <rule ruleSet="a" typeName="RangeRule" minimum="18" maximum="80" errorMessage="Age is invalid" />
      <rule ruleSet="b" typeName="RangeRule" minimum="18" maximum="80" errorMessage="Age is invalid" />
      <rule ruleInterpretation="This is a custom rule" ruleSet="foo" validationMethod="ValidateValid" validationTypeName="ValidationFramework.Tests.CustomRuleTest+ValidationClass,ValidationFramework.Tests" errorMessage='hello' typeName='CustomRule'/>
    </property>
    <method name="SetTheAge">
      <overloadType typeName="System.Int32"/>
      <parameter name="age">
        <rule typeName="RangeRule" minimum="18" maximum="80" errorMessage="Age is invalid" />
        <rule ruleSet="a" typeName="RangeRule" minimum="18" maximum="80" errorMessage="Age is invalid" />
        <rule ruleSet="b" typeName="RangeRule" minimum="18" maximum="80" errorMessage="Age is invalid" />
        <rule ruleInterpretation="This is a custom rule" ruleSet="foo" validationMethod="ValidateValid" validationTypeName="ValidationFramework.Tests.CustomRuleTest+ValidationClass,ValidationFramework.Tests" errorMessage='hello' typeName='CustomRule'/>
      </parameter>
    </method>
    <method name="SetTheAge2">
      <parameter name="age">
        <rule typeName="RangeRule" minimum="18" maximum="80" errorMessage="Age is invalid" />
        <rule ruleSet="a" typeName="RangeRule" minimum="18" maximum="80" errorMessage="Age is invalid" />
        <rule ruleSet="b" typeName="RangeRule" minimum="18" maximum="80" errorMessage="Age is invalid" />
        <rule ruleInterpretation="This is a custom rule" ruleSet="foo" validationMethod="ValidateValid" validationTypeName="ValidationFramework.Tests.CustomRuleTest+ValidationClass,ValidationFramework.Tests" errorMessage='hello' typeName='CustomRule'/>
      </parameter>
    </method>
  </class>
</validationMapping>